package com.example.hello.api.impl;


import com.example.hello.api.HelloApi;
import com.example.hello.api.dto.HelloReq;
import com.example.hello.api.dto.HelloResp;
import lombok.extern.slf4j.Slf4j;
import org.apache.dubbo.config.annotation.Service;

/**
 * Created by JiWen on 2018/12/11 at Qudian.
 */
@Service
@Slf4j
public class HelloApiImpl implements HelloApi {

    @Override
    public HelloResp sayHello(HelloReq msg) {
        log.info("sayHello 入参{}", msg);
        HelloResp helloResp = new HelloResp();
        helloResp.setMsg("Hello " + msg);
        log.info("sayHello 返回{}", helloResp);
        return helloResp;
    }
}
